package cn.zqh.minio.client;

import cn.zqh.bean.bo.Commodity;
import cn.zqh.minio.config.DefaultFeignConfiguration;
import cn.zqh.minio.interceptor.FeignInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name = "bs-commodity",configuration = { DefaultFeignConfiguration.class, FeignInterceptor.class})
public interface CommodityClient {

    /**
      * @Author: zqh
      * @Date:
      * @Description: 通过商品id拿到商品
    */
    @GetMapping("/commodity/getCommodityById")
    public Commodity getCommodityById(@RequestParam String id);
}
